# Copyright (c) 2022 Huawei Technologies Co.,Ltd.
#
# openGauss is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#
#          http://license.coscl.org.cn/MulanPSL2
#
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.

FEATURE_LIB = {'features': [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                            [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                            [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                            [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                            [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                            [0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                            [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0],
                            [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1]],
               'labels': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
                          17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
                          17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
                          17],
               'weight_matrix': [
                   [0.9984554256549266, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    1.2279293994575322e-06, 1.3549565787117599e-06, 1.1432446132880474e-06, 1.2279293994575322e-06,
                    1.1432446132880474e-06, 1.1009022202033048e-06],
                   [0.0001024917425499386, 0.9984554256549266, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    1.2279293994575322e-06, 1.3549565787117599e-06, 1.1432446132880474e-06, 1.2279293994575322e-06,
                    1.1432446132880474e-06, 1.1009022202033048e-06],
                   [0.0001024917425499386, 0.0001024917425499386, 0.9984554256549266, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    1.2279293994575322e-06, 1.3549565787117599e-06, 1.1432446132880474e-06, 1.2279293994575322e-06,
                    1.1432446132880474e-06, 1.1009022202033048e-06],
                   [0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.9984554256549266,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    1.2279293994575322e-06, 1.3549565787117599e-06, 1.1432446132880474e-06, 1.2279293994575322e-06,
                    1.1432446132880474e-06, 1.1009022202033048e-06],
                   [0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.9984554256549266, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    1.2279293994575322e-06, 1.3549565787117599e-06, 1.1432446132880474e-06, 1.2279293994575322e-06,
                    1.1432446132880474e-06, 1.1009022202033048e-06],
                   [0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.9984554256549266, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    1.2279293994575322e-06, 1.3549565787117599e-06, 1.1432446132880474e-06, 1.2279293994575322e-06,
                    1.1432446132880474e-06, 1.1009022202033048e-06],
                   [0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.9984554256549266, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    1.2279293994575322e-06, 1.3549565787117599e-06, 1.1432446132880474e-06, 1.2279293994575322e-06,
                    1.1432446132880474e-06, 1.1009022202033048e-06],
                   [0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.9984554256549266, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    1.2279293994575322e-06, 1.3549565787117599e-06, 1.1432446132880474e-06, 1.2279293994575322e-06,
                    1.1432446132880474e-06, 1.1009022202033048e-06],
                   [0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.9984554256549266, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    1.2279293994575322e-06, 1.3549565787117599e-06, 1.1432446132880474e-06, 1.2279293994575322e-06,
                    1.1432446132880474e-06, 1.1009022202033048e-06],
                   [0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.9984554256549266, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    1.2279293994575322e-06, 1.3549565787117599e-06, 1.1432446132880474e-06, 1.2279293994575322e-06,
                    1.1432446132880474e-06, 1.1009022202033048e-06],
                   [0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.9984554256549266,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    1.2279293994575322e-06, 1.3549565787117599e-06, 1.1432446132880474e-06, 1.2279293994575322e-06,
                    1.1432446132880474e-06, 1.1009022202033048e-06],
                   [0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.9984554256549266,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    1.2279293994575322e-06, 1.3549565787117599e-06, 1.1432446132880474e-06, 1.2279293994575322e-06,
                    1.1432446132880474e-06, 1.1009022202033048e-06],
                   [0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.9984554256549266, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    1.2279293994575322e-06, 1.3549565787117599e-06, 1.1432446132880474e-06, 1.2279293994575322e-06,
                    1.1432446132880474e-06, 1.1009022202033048e-06],
                   [0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.9984554256549266,
                    1.2279293994575322e-06, 1.3549565787117599e-06, 1.1432446132880474e-06, 1.2279293994575322e-06,
                    1.1432446132880474e-06, 1.1009022202033048e-06],
                   [0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.9984554256549266, 0.0001024917425499386, 0.0001024917425499386,
                    1.2279293994575322e-06, 1.3549565787117599e-06, 1.1432446132880474e-06, 1.2279293994575322e-06,
                    1.1432446132880474e-06, 1.1009022202033048e-06],
                   [0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386, 0.0001024917425499386,
                    0.0001024917425499386, 0.0001024917425499386, 0.9984554256549266, 0.0001024917425499386,
                    1.2279293994575322e-06, 1.3549565787117599e-06, 1.1432446132880474e-06, 1.2279293994575322e-06,
                    1.1432446132880474e-06, 1.1009022202033048e-06],
                   [1.5687755404435794e-11, 1.5687755404435794e-11, 1.5687755404435794e-11, 1.5687755404435794e-11,
                    1.5687755404435794e-11, 1.5687755404435794e-11, 1.5687755404435794e-11, 1.5687755404435794e-11,
                    1.5687755404435794e-11, 1.5687755404435794e-11, 1.5687755404435794e-11, 1.5687755404435794e-11,
                    1.5687755404435794e-11, 1.5687755404435794e-11, 1.5687755404435794e-11, 1.5687755404435794e-11,
                    0.1705882352512993, 0.1882352940703992, 0.15882352937189934, 0.1705882352512993,
                    0.15882352937189934, 0.15294117643219937]]
               }
